/*******************************************************************************
 * Copyright (c) 2023. 山东新北洋信息技术股份有限公司 保留所有权利。
 *
 ******************************************************************************/


package online.xuping.thousandsOfWorlds.common.event;

import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * 基础事件
 */
public class BaseEvent extends ApplicationEvent {

    /**
     * 资产编码
     */
    private String assetCode;
    /**
     * 产品名称
     */
    private String productName;
    /**
     * 区仓编码
     */
    private String materialCode;
    /**
     * 区仓名称
     */
    private String warehouseName;
    /**
     * 区仓编码
     */
    private String warehouseCode;

    /**
     * 基本的构造函数
     *
     * @param source .
     */
    public BaseEvent(Object source) {
        super(source);
    }

    /**
     * @param source .
     * @param clock  .
     */
    public BaseEvent(Object source, Clock clock) {
        super(source, clock);
    }

    public String getAssetCode() {
        return assetCode;
    }

    public void setAssetCode(String assetCode) {
        this.assetCode = assetCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }
}
